package pojo.bean;

import java.util.Date;

public class EmailUser {
    private int identifier;

    private String userName;

    private int age;

    private String email;

    private Date registrationTime;
    
    public EmailUser() {}
    
    public EmailUser(String userName) {
        this.userName = userName;
    }

    public EmailUser(int identifier, String userName, int age, String email, Date registrationTime) {
        this.identifier = identifier;
        this.userName = userName;
        this.age = age;
        this.email = email;
        this.registrationTime = registrationTime;
    }

    public int getIdentifier() {
        return identifier;
    }

    public void setIdentifier(int identifier) {
        this.identifier = identifier;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    @Override
    public String toString() {
        return "EmailUser [identifier=" + identifier + ", userName=" + userName + ", age=" + age + ", email=" + email
            + ", registrationTime=" + registrationTime + "]";
    }
}